Returning a subset that has a duplicate